package com.study.test.demo.observer.mouseevent.handler;

import com.study.test.demo.observer.mouseevent.core.EventContext;

/**
 * 具体的被观察者
 *
 * @Author hupengming
 * @ClassName Mouse
 * @Date 2023-03-14  15:41
 * @Version 1.0
 */
public class Mouse extends EventContext {

    public void click(){
        System.out.println("调用单击方法");
        this.trigger(MouseEventType.ON_CLICK);
    }

}
